package com.ruoyi.web.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 pj_orders
 * 
 * @author mike
 * @date 2024-12-21
 */
public class PjOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单编号 唯一标识订单 */
    @Excel(name = "订单编号 唯一标识订单")
    private String orderNumber;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date orderTime;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalAmount;

    /** 实际支付价格，考虑折扣情况 */
    @Excel(name = "实际支付价格，考虑折扣情况")
    private BigDecimal actualAmount;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String shippingAddress;

    /** 配送方法 */
    @Excel(name = "配送方法")
    private String shippingMethod;

    /** 运费 */
    @Excel(name = "运费")
    private BigDecimal shippingFee;

    /** 更详细的订单状态 */
    @Excel(name = "更详细的订单状态")
    private String orderStatus;

    /** 物流单号（如果有） */
    @Excel(name = "物流单号", readConverterExp = "如=果有")
    private String trackingNumber;

    /** 预计送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date estimatedDeliveryTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setActualAmount(BigDecimal actualAmount) 
    {
        this.actualAmount = actualAmount;
    }

    public BigDecimal getActualAmount() 
    {
        return actualAmount;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setShippingAddress(String shippingAddress) 
    {
        this.shippingAddress = shippingAddress;
    }

    public String getShippingAddress() 
    {
        return shippingAddress;
    }
    public void setShippingMethod(String shippingMethod) 
    {
        this.shippingMethod = shippingMethod;
    }

    public String getShippingMethod() 
    {
        return shippingMethod;
    }
    public void setShippingFee(BigDecimal shippingFee) 
    {
        this.shippingFee = shippingFee;
    }

    public BigDecimal getShippingFee() 
    {
        return shippingFee;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setTrackingNumber(String trackingNumber) 
    {
        this.trackingNumber = trackingNumber;
    }

    public String getTrackingNumber() 
    {
        return trackingNumber;
    }
    public void setEstimatedDeliveryTime(Date estimatedDeliveryTime) 
    {
        this.estimatedDeliveryTime = estimatedDeliveryTime;
    }

    public Date getEstimatedDeliveryTime() 
    {
        return estimatedDeliveryTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("orderNumber", getOrderNumber())
            .append("orderTime", getOrderTime())
            .append("totalAmount", getTotalAmount())
            .append("actualAmount", getActualAmount())
            .append("paymentMethod", getPaymentMethod())
            .append("shippingAddress", getShippingAddress())
            .append("shippingMethod", getShippingMethod())
            .append("shippingFee", getShippingFee())
            .append("orderStatus", getOrderStatus())
            .append("trackingNumber", getTrackingNumber())
            .append("estimatedDeliveryTime", getEstimatedDeliveryTime())
            .append("remark", getRemark())
            .toString();
    }
}
